package aquabelva;

/**
 * The WebTalkError class provides an object representing an error in WebTalk source.
 * It has fields for an error message and a line number at which this error occurred.
 * @author Edwe Cowley (Aqua Belva)
 */

public class WebTalkError {

  private String message;  //An error message
  private int line;		   //The line number in which this error was encountered

  /**
   * Constructor
   * @param msg The error message
   * @param lin The line number in which this error was found
   */
  public WebTalkError(String msg, int lin) {
	message = msg;
	line = lin;
  }

  /**
   * @return the line number in which this error was encountered
   */
  public int getLine() {
	  return line;
  }

  /**
   * @return the error message corresponding to this error
   */
  public String getMessage() {
	  return message;
  }

}
